<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			function Dog(n,a,type){
				this.name=n;
				this.age=a;
				this.type=type;
				this.showDog=function(){
					alert(this.name+","+this.age+","+this.type);
				}
			}
			var d=new Dog("小黄",3,"土狗");
			var d2=new Dog("jack",5,"哈士奇");
			d.showDog();
			d.age++;
			d.showDog();
			d2.showDog();
			alert(d.constructor==d2.constructor);
		</script>
	</head>
	<body>
	</body>
</html>
